package com.sap.ondeabastecer;

import com.google.android.maps.GeoPoint;
import com.google.android.maps.MapController;
import com.google.android.maps.MapView;

import android.app.TabActivity;
import android.content.Context;
import android.content.Intent;
import android.hardware.GeomagneticField;
import android.location.Location;
import android.location.LocationListener;
import android.location.LocationManager;
import android.os.Bundle;
import android.widget.TabHost;
import android.widget.TabHost.TabSpec;
import android.widget.Toast;

public class OndeAbastecerActivity extends TabActivity {
    
	private TabHost tabHost;
	
	/** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        setTabView();
    }
    
    private void setTabView() {
    	tabHost = getTabHost();
        
        tabHost.addTab(tabHost.newTabSpec("list").setIndicator("POSTOS").setContent(R.id.tabList));
        Context ctx = this.getApplicationContext();
        Intent i = new Intent(ctx, TabMapActivity.class);
        TabSpec tbSpec = tabHost.newTabSpec("map");
        tbSpec.setIndicator("MAPA");
        tbSpec.setContent(i);
        tabHost.addTab(tbSpec);
        
        tabHost.setCurrentTab(0);
    }
   
    
    
}